/*
 * XML Type:  PresentmentDlvMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentDlvMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentDlvMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentDlvMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractMessageSetVersionImpl implements net.ofx.types.x2003.x04.PresentmentDlvMessageSetV1
{
    
    public PresentmentDlvMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PRESDLVPROF$0 = 
        new javax.xml.namespace.QName("", "PRESDLVPROF");
    private static final javax.xml.namespace.QName EMAILPROF$2 = 
        new javax.xml.namespace.QName("", "EMAILPROF");
    
    
    /**
     * Gets the "PRESDLVPROF" element
     */
    public net.ofx.types.x2003.x04.PresentmentDlvProfile getPRESDLVPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDlvProfile target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDlvProfile)get_store().find_element_user(PRESDLVPROF$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESDLVPROF" element
     */
    public boolean isSetPRESDLVPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESDLVPROF$0) != 0;
        }
    }
    
    /**
     * Sets the "PRESDLVPROF" element
     */
    public void setPRESDLVPROF(net.ofx.types.x2003.x04.PresentmentDlvProfile presdlvprof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDlvProfile target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDlvProfile)get_store().find_element_user(PRESDLVPROF$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentDlvProfile)get_store().add_element_user(PRESDLVPROF$0);
            }
            target.set(presdlvprof);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESDLVPROF" element
     */
    public net.ofx.types.x2003.x04.PresentmentDlvProfile addNewPRESDLVPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDlvProfile target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDlvProfile)get_store().add_element_user(PRESDLVPROF$0);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESDLVPROF" element
     */
    public void unsetPRESDLVPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESDLVPROF$0, 0);
        }
    }
    
    /**
     * Gets the "EMAILPROF" element
     */
    public net.ofx.types.x2003.x04.EmailProfile getEMAILPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailProfile target = null;
            target = (net.ofx.types.x2003.x04.EmailProfile)get_store().find_element_user(EMAILPROF$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "EMAILPROF" element
     */
    public void setEMAILPROF(net.ofx.types.x2003.x04.EmailProfile emailprof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailProfile target = null;
            target = (net.ofx.types.x2003.x04.EmailProfile)get_store().find_element_user(EMAILPROF$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.EmailProfile)get_store().add_element_user(EMAILPROF$2);
            }
            target.set(emailprof);
        }
    }
    
    /**
     * Appends and returns a new empty "EMAILPROF" element
     */
    public net.ofx.types.x2003.x04.EmailProfile addNewEMAILPROF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailProfile target = null;
            target = (net.ofx.types.x2003.x04.EmailProfile)get_store().add_element_user(EMAILPROF$2);
            return target;
        }
    }
}
